package ca.wang.spring;

public class ExampleJob
{
	int timeout = 5000;
	public int getTimeout() {
		return timeout;
	}
	public void setTimeout(int timeout) {
		this.timeout = timeout;
	}

	public void doJob()
	{
		System.out.println("Example job will run for " + timeout + " millis.");
		try {
			Thread.sleep(timeout);
		} catch (InterruptedException e) {
			e.printStackTrace();
		}
		System.out.println("Example job is ending.");
	}
}
